package adv6;

public class Thread2 implements Runnable {

	@Override
	public void run() {
		for (int i = 1; i <= 20; i++) {
			System.out.println(Thread.currentThread().getName() + ">>>" + i);
		}
	}

	public static void main(String[] args) {
		for (int i = 1; i <= 6; i++) {
			Thread2 th = new Thread2();
			Thread thread = new Thread(th, "线程" + i);
			thread.start();
		}
	}
}
